﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;

namespace BirthdayNote
{
    public partial class End : Form
    {
        public End(DateTime planDate)
        {
            InitializeComponent();

            planD.Text = $"请在{planDate.ToString("yyyy-MM-dd")}制定生日计划！";
            //int x = (this.ClientSize.Width - planD.Width) / 2;
            //int y = (this.ClientSize.Height - planD.Height) / 2;
            //planD.Location = new Point(x, y);
            leave.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; ;

            this.KeyPreview = true;
        }

        private void End_KeyDown(object sender, KeyEventArgs e)
        {
            Application.Exit();
        }
    }
}
